import request from "@/utils/request";

export function addTrainingType(trainingType) {
    return request({
        url: '/trainingType/addTrainingType',
        method: 'post',
        data:trainingType
    })
}

export function deleteTrainingType(ids) {
    return request({
        url: '/trainingType/deleteTrainingType',
        method: 'delete',
        data:ids
    })
}

export function changeTrainingType(trainingType) {
    return request({
        url: '/trainingType/updateTrainingType',
        method: 'post',
        data:trainingType
    })
}

export function getAllTrainingType(trainingType,page,pageSize) {
    return request({
        url: '/trainingType/getAllTrainingType?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:trainingType
    })
}
export function getTrainingTypeList() {
    return request({
        url: '/trainingType/getTrainingTypeList',
        method: 'get',
    })
}
